<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='咨询记录-编辑',jsPaths='/static/js/elder/searchrecord/add.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="/gbElderly/elist">老人管理</a>
                    <a href="/searchrecord">咨询记录</a>
                    <a><cite>编辑</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
        <form class="layui-form" th:action="@{/searchrecord/update}" method="post">

            <div class="layui-form-item">
                <label class="layui-form-label must">客户姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="name" th:value="${searchrecord.name}" maxlength="10" lay-verify="required" placeholder="请输入客户姓名" autocomplete="off" class="layui-input">
                    <input type="hidden" name="id" th:value="${searchrecord.id}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label must">联系电话</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" th:value="${searchrecord.phone}"   lay-verify="phone" placeholder="请输入联系电话" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">咨询事项</label>
                <div class="layui-input-block">
                    <textarea  name="remark"  placeholder="请输入咨询事项" maxlength="1000" th:text="${searchrecord.remark}" autocomplete="off" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                    <a href="/searchrecord" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>

        </form>

    </div>
</div>
</html>